<?
        require_once('../inc/Customers.php');
        if(isset($_POST['sav']))
        {
            $post = $_POST;
			$tar = "Location: index.php";
            $newrow = CreateCustomer($post);
            header($tar);
            die();				
       	}	
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>New User Sign Up</title>
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css">
    <style type="text/css" ">
        .error { color: red; }
    </style>
</head>

<body>
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">             
                <form class="form-horizontal" method="post" action="">
                    <div class=" control-group">
                        <label class="control-label" for="FirstName">First Name:</label>
                        <div class="controls">
                            <input type="text" name="FirstName" id="FirstName" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="LastName">Last Name:</label>
                        <div class="controls">
                            <input type="text" name="LastName" id="LastName" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="Address1">Address 1:</label>
                        <div class="controls">
                            <input type="text" name="Address1" id="Address1" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="Address2">Address 2:</label>
                        <div class="controls">
                            <input type="text" name="Address2" id="Address2" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="City">City:</label>
                        <div class="controls">
                            <input type="text" name="City" id="City" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="State">State:</label>
                        <div class="controls">
                            <input type="text" name="State" id="State" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="ZipCode">Zip Code:</label>
                        <div class="controls">
                            <input type="text" name="ZipCode" id="ZipCode" value="" />
                        </div>
                    </div><div class="control-group">
                        <label class="control-label" for="Country">Country:</label>
                        <div class="controls">
                            <input type="text" name="Country" id="Country" value="" />
                        </div>
                    </div>
                    <input class="btn btn-primary" type="submit" value="Save" name="sav" />
                </form>
           </div>
       </div>
</body>
</html>